{include header.htm 1}
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#000000">
  <tr>
    <td height="24" colspan="4" bgcolor="#FFFFFF"><strong>会员管理</strong></td>
  </tr>
  <tr>
    <td width="200" height="24" bgcolor="#FFFFFF">ID</td>
    <td width="200" bgcolor="#FFFFFF">用户名</td>
    <td width="300" bgcolor="#FFFFFF">EMAIL</td>
    <td width="100" bgcolor="#FFFFFF">操作</td>
  </tr>
 {foreach lister_user fk fv}
  <tr>
    <td height="24" bgcolor="#FFFFFF"> {:fv.uid}</td>
    <td bgcolor="#FFFFFF"><a href="user_view.php?id={:fv.uid}">{:fv.username}</a></td>
    <td bgcolor="#FFFFFF">{:fv.email}</td>
    <td bgcolor="#FFFFFF"><a href="user_del.php?id={:fv.uid}" onclick="if(!confirm('确定删除？不可恢复')) return false;">删除</a> <a href="user_view.php?id={:fv.uid}">查看</a></td>
  </tr>{/foreach}
  <tr>
    <td height="24" colspan="4" bgcolor="#FFFFFF">{:pagelink}</td>
  </tr>
  <tr>
    <td height="24" colspan="4" bgcolor="#FFFFFF"><a href="user_add.php">添加用户</a></td>
  </tr>
  <tr>
    <td height="24" colspan="4" bgcolor="#FFFFFF"><strong>搜索</strong></td>
  </tr><form name="form1" action="{:FormToSelf}">
  <tr>
    <td height="24" colspan="4" bgcolor="#FFFFFF">用户名：
      <input name="username" type="text" id="username" value="{:username}">
      <input name="jq" type="checkbox" id="jq" value="1">
      精确匹配</td>
  </tr>
  <tr>
    <td height="24" colspan="4" bgcolor="#FFFFFF">用户组 {foreach _usergroup k v}
      <input name="input[group]" type="radio" id="input[group]" value="{:v.id}" />
{:v.name}{/foreach}</td>
  </tr>
  {if}
  {:rtc.pass_school_ban} != 1
  {/if}
  <tr>
    <td height="24" colspan="4" bgcolor="#FFFFFF">院系 {:a|GetCollegesLister|GetTreeSelect @,input[u_cid],[:input.u_cid],id,name,请选择院系,onchange="loadZhuanye();loadClass()"} 专业 <span id="st_zhuanye">{:a|GetProfessionalLister|GetTreeSelect @,input[u_pid],[:input.u_pid],id,pname,请选择专业}</span>  年级
        <select name="input[grade]" id="input[grade]" onchange="loadClass()">
          <option value="">请选择年级</option>
          
        
          
      
      
	  {foreach grades k v}
        
      
      
          
        
          <option value="{:v}" {if}'{:v}'=='{:input.grade}'{/if}selected{/endif}>{:v}级</option>
          
        
          
      
      
	{/foreach}
      
    
    
      
      
        </select>
自然班级 <span id="st_class">{:a|GetStudentClassList 0|GetTreeSelect @,input[class],[:input.class],id,classname,请选择班级}课程班级
      <select name="input[classes]" id="input[classes]">
        <option value="">请选择班级</option>
        
        
          
	  {foreach add_class k v}
      
          
        
        <option value="{:v.id}" {if}'{:v.id}'=='{:input.classes}'{/if}selected{/endif}>{:v.classname}班</option>
        
        
          
	{/foreach}
    
      
      
      </select>
</span></td>
  </tr>
  {/endif}
  {if}
  {:rtc.pass_buss_ban} != 1
  {/if}
  <tr>
    <td height="24" colspan="4" bgcolor="#FFFFFF">部门 {:a|GetBussTreeList|GetTreeSelect @,input[u_bid],[:input.u_bid],id,name,请选择部门}</td>
  </tr>
  {/endif}
  {foreach selfdef_fields k v}
  <tr>
    <td height="24" colspan="4" bgcolor="#FFFFFF">{:v.0|GetMsg @}
      <input name="morefields[{:v.0}]" type="text" id="morefields[{:v.0}]" value="{:morefields.[:v.0]}"/>
模糊匹配</td>
  </tr>
  {/foreach}
  <tr>
    <td height="24" colspan="4" bgcolor="#FFFFFF"><input type="submit" value="搜索"></td>
  </tr>
  </form>
</table>
<script language="javascript">
function loadZhuanye() {
	if(parseInt($('input[u_cid]').value) > 0) {
		var url = 'ajax_loadzhuanye.php?cid=' + $('input[u_cid]').value;
		ajaxLoadUrl(url,$('st_zhuanye'));
	}
}

function loadClass() {
	var cid = parseInt($('input[u_cid]').value);
	var grade = parseInt($('input[grade]').value);
	if(cid > 0 || grade) {
		var url = 'ajax_loadclass.php?cid=' + cid + '&grade=' + grade;
		ajaxLoadUrl(url,$('st_class'));
	}
}
</script>
{include footer.htm}
